package cn.kuporo.seckill.order.infrastructure.mapper;

import cn.kuporo.seckill.order.domain.model.entity.SeckillOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: kuporo
 * @since: 2025/8/4
 * @description:
 */
public interface SeckillUserOrderMapper {

    /**
     * 保存订单
     */
    int saveSeckillOrder(SeckillOrder seckillOrder);
    
    /**
     * 删除订单数据
     */
    void deleteOrder(@Param("userId") Long userId, @Param("orderId") Long orderId);

    /**
     * 根据用户id获取订单列表
     */
    List<SeckillOrder> getSeckillOrderByUserId(Long userId);
}
